Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Renderers/SDL3] Add rounded corners rectangle functionality #219

Merged

Conversation

ArnauNau
Copy link
Contributor

Added one of the missing features for the SDL3 renderer.

Copy link
Contributor Author

@ArnauNau ArnauNau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternate radius value discussion. The RayLib module compares topRight corner radius with boundingBox and chooses one of the two depending on the comparison result. I'm not sure why it does that but I've added the same logic but left it commented out so if someone knows why it's there and it's needed it can be quickly added to the SDL3 module by uncommenting that and commenting the current call.

renderers/SDL3/clay_renderer_SDL3.c Show resolved Hide resolved
@nicbarker nicbarker changed the title SDL3: Add rounded corners rectangle functionality [Renderers/SDL3] Add rounded corners rectangle functionality Jan 22, 2025
@nicbarker
Copy link
Owner

This is looking so good, well done! 😎

@nicbarker nicbarker merged commit aba846a into nicbarker:main Jan 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants